#!/bin/sh

if [ "$DATABASE" = "postgres" ]; then
    echo "Check if database is running..."

 
    echo "Waiting for the database..."
    sleep 0.1


    echo "The database is up and running :-D"
fi

python manage.py makemigrations
python manage.py migrate

exec "$@"